package com.danciyixue.boot.dcyx.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.*;

/**
 * 测试试卷信息表单对象
 *
 * @author youlaitech
 * @since 2025-06-15 16:21
 */
@Getter
@Setter
@Schema(description = "测试试卷信息表单对象")
public class TestsForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "测试ID")
    private Long id;

    @Schema(description = "所属单元ID")
    @NotNull(message = "所属单元ID不能为空")
    private Long unitId;

    @Schema(description = "所属项目ID")
    private Long programId;

    @Schema(description = "测试标题")
    @NotBlank(message = "测试标题不能为空")
    @Size(max=128, message="测试标题长度不能超过128个字符")
    private String title;

    @Schema(description = "测试类型")
    private Integer type;

    @Schema(description = "测试时长(秒)")
    private Integer second;

    @Schema(description = "题目总数")
    private Integer totalQuestionNum;


}
